<script setup lang="ts">
import { useCounterStore } from '@/stores/counter.ts'

const counterStore = useCounterStore()
</script>

<template>
  <p>这里是主页</p>
  <p>数值：{{ counterStore.count }}</p>
  <p>数值+2：{{ counterStore.doubleCount }}</p>
  <a-button type="primary" @click="counterStore.increment">点击+1</a-button>
  <router-link to="/space/apps/">跳转到应用列表</router-link>
</template>

<style scoped></style>
